package design.mode.memento.item1;

/**
 * /**
 *
 * @author ZhongMingde on 2021/11/20
 */

public class InputText {

  private StringBuilder text = new StringBuilder();

  public String getText() {
    return text.toString();
  }

  public void append(String input) {
    text.append(input);
  }

  public void setText(String text) {
    this.text.replace(0, this.text.length(), text);
  }

}
